-- GENERATED SPELL FOR [Gorishi Egg] --


function spell0_9496(pUnit, Event) --@Summon Gorishi Grub,Self--
pUnit:FullCastSpellOnTarget(14206,pUnit)
pUnit:RegisterEvent('Sorts_9496', 585, 1)
end

function Sorts_9496(pUnit, Event)
local choix_sorts_9496 = math.random(0, 0)
if choix_sorts_9496 == 0 then
pUnit:RegisterEvent('spell0_9496', 1, 1)
end
end

function mob9496_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9496', math.random(1500, 3000), 1)
end

function mob9496_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9496_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9496_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9496, 1, 'mob9496_Action')
RegisterUnitEvent(9496, 2, 'mob9496_Leave')
RegisterUnitEvent(9496, 3, 'mob9496_Kill')
RegisterUnitEvent(9496, 4, 'mob9496_Die')
